package com.mycontact.shared;

import java.util.List;

import com.google.gwt.requestfactory.shared.InstanceRequest;
import com.google.gwt.requestfactory.shared.Request;
import com.google.gwt.requestfactory.shared.RequestContext;
import com.google.gwt.requestfactory.shared.Service;
import com.mycontact.server.domain.Contact;

@Service(Contact.class)
public interface ContactRequest extends RequestContext {
	Request<Integer> countContacts();
	InstanceRequest<ContactProxy, Void> persist();
	Request<Void> generateContacts();
	Request<List<ContactProxy>> findAllContacts();
	Request<ContactProxy> findContact(Long Id);
}
